CC = ${CROSS_COMPILE}g++
CFLAGS = -Wall -O -fPIC -shared 

LIB_NAME=liblw.so

SRC = ./common/*.cpp \
	./communication/*.cpp \
	./communication/tcp_communication/*.cpp \
	./communication/communication_factory.cpp \
	./log/*.cpp \

INC = -I./include/common/ \
	-I./include/communication/ \
	-I./include/communication/tcp_communication/ \
	-I./include/log/


$(LIB_NAME): ${SRC}
	${CC} ${CFLAGS} ${INC} $^ -o $@

clean:
	rm -f $(LIB_NAME)
